﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

namespace Code.Search
{
    public class SearchController
    {
        public SearchController()
        {

        }

        public DataTable DoSearch(string strCondition)
        {
            SearchDataAccess da = new SearchDataAccess();
            return da.DoSearch(strCondition);
        }

        public DataTable DoAdvanceSearch(string sProductType,string sManufacture,int iBeginPrice,int iEndPrice)
        {
            SearchDataAccess da = new SearchDataAccess();
            return da.DoAdvanceSearch(sProductType, sManufacture, iBeginPrice, iEndPrice);
        }
    }
}
